<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"/>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="format-detection" content="email=no"/>
    <meta charset="UTF-8">
    <script type="text/javascript" th:src="@{${session.baseUrl}+'js/common.js'}"></script>
    <script th:src="@{${session.baseUrl}+'js/jquery.js'}"></script>
    <link th:href="@{${session.baseUrl}+'style/reset.css'}" rel="stylesheet" type="text/css">
    <link th:href="@{${session.baseUrl}+'style/base.css'}" rel="stylesheet" type="text/css">
    <link th:href="@{${session.baseUrl}+'style/header.css'}" rel="stylesheet" type="text/css">
    <link rel="stylesheet" th:href="@{${session.baseUrl}+'style/supportList.css'}"/>
    <title>我的转让</title>
</head>
<body>
<header><span onclick="javascript:history.go(-1)"></span>我的转让</header>
<table>
    <thead>
        <tr class="f28 g9">
            <td>项目名</td>
            <td>创建时间</td>
            <td>接收人名称</td>
        </tr>
    </thead>
    <tbody class="" id="content0">

        <tr th:each="tr,iterStat : ${transferList}" th:if="${transferList!=null}">
            <td> <a th:text="${tr.memberProjectName}" style="width: 2.0rem;text-decoration:none;color:#323232; display:inline-block;overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" th:href="@{/wap/memberProjectTransfer.html/myTransfer/(projectId=${tr.id})}"></a></td>
            <td class="g6"><a th:text="${#dates.format(tr.createTime,'yyyy-MM-dd HH:mm:ss')}" style="text-decoration:none;color:#323232;" th:href="@{/wap/memberProjectTransfer.html/myTransfer/(projectId=${tr.id})}"></a></td>
            <td><a th:text="${tr.acceptNumberName}" style="text-decoration:none;color:#323232;" th:href="@{/wap/memberProjectTransfer.html/myTransfer/(projectId=${tr.id})}"></a></td>
        </tr>
    </tbody>
</table>
<div th:if="${transferList==null || transferList.size()==0}">
    <img th:src="@{${session.baseUrl}+'\images\zanwu.png'}" style="width: 8.5rem;height:5.2rem;transform: translate(0rem, -1rem);"/>
</div>
<script type="text/javascript" th:inline="javascript">
    var basePath = /*[[${#httpServletRequest.getScheme() + "://" + #httpServletRequest.getServerName() + ":" + #httpServletRequest.getServerPort() + #httpServletRequest.getContextPath()}]]*/;




    var num = 1;
    $(function () {
        $(window).scroll(
            function () {

                if ((document.documentElement.scrollHeight) == (document.documentElement.scrollTop | document.body.scrollTop) + document.documentElement.clientHeight) {
                    num = num + 1;

                    $.ajax({
                        type: "POST",
                        data: {
                            current: num,
                           // memberId:[[${session.memberId}]],
                        },
                        url: basePath + '/wap/memberProjectTransfer.html/pageList',
                        cache: false,
                        /*async:true,    //true：异步，false：同步。*/
                        success: function (data) {

                            str = '';
                            $.each(data, function (index, value) {

                                str += '<tr>';
                                str += '<td ><a style="width: 2.0rem;text-decoration:none;color:#323232; display:inline-block;overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" href="/wap/memberProjectTransfer.html/myTransfer/?projectId=' + value.memberProjectId + '">'+value.memberProjectName+'</a></td>';
                                str += '<td class="g6"><a style="text-decoration:none;color:#323232;" href="/wap/memberProjectTransfer.html/myTransfer/?projectId=' + value.memberProjectId + '">'+value.createTime+'</a></td>';
                                str += '<td ><a style="text-decoration:none;color:#323232;" style="text-decoration:none;color:#323232;" href="/wap/memberProjectTransfer.html/myTransfer/?projectId=' + value.memberProjectId + '">'+value.acceptNumberName+'</a></td>';
                                str += '</tr>';


                            });
                            $("#content0").append(str); //动态加载插入HTML
                        },
                        error: function () {
                            alert("ajax请求失败");
                        }
                    })


                }
            });
    });


</script>
</body>
</html>